import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';

class PlaylistsPage extends StatelessWidget {
  const PlaylistsPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        width: double.infinity,
        height: double.infinity,
        color: Colors.amberAccent,
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            ElevatedButton(onPressed: ()=>GoRouter.of(context).go("/"), child: const Text("HOME")),
            const SizedBox(height: 20,),
            ElevatedButton(onPressed: ()=>GoRouter.of(context).go("/playlists/f999000"), child: const Text("GO")),
            const SizedBox(height: 20,),
            ElevatedButton(onPressed: ()=>GoRouter.of(context).push("/test_page"), child: const Text("PUSH")),
          ],
        ),
      ),
    );
  }
}
